@extends('site.layouts.default')
@section('content')
    <div class="row">
        @foreach ($news as $post)
            <div class="col-md-6">
                <div class="row">
                    <div class="col-md-8">
                        <h4>
                            <strong><a href="{{URL::to('news/'.$post->id.'.html')}}">{!!
                                    $post->title !!}</a></strong>
                        </h4>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-2">
                        <a href="{{URL::to('news/'.$post->id.'.html')}}" class="thumbnail"><img
                                    src="http://placehold.it/260x180" alt=""></a>
                    </div>
                    <div class="col-md-10">
                        <p>{!! $post->introduction !!}</p>
                        <p>
                            <a class="btn btn-mini btn-default"
                               href="{{URL::to('news/'.$post->id.'.html')}}">阅读更多</a>
                        </p>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <p></p>
                        <p>
                            <span class="glyphicon glyphicon-user"></span> by <span
                                    class="muted">{!! $post->author->name !!}</span> | <span
                                    class="glyphicon glyphicon-calendar"></span> {!! $post->created_at
                            !!} | <span class="glyphicon glyphicon-eye-open"></span> 45 | <span class="glyphicon glyphicon-comment"></span> 100
                        </p>
                    </div>
                </div>
            </div>
        @endforeach
    </div>
@stop
